<template>
	<view class="content">
		<view class="head">
			<view class="info">
				<view class="wrap">
					<image class="avatar" src="" mode="aspectFill"></image>
					<text class="name">小明</text>
				</view>
			</view>
			<view class="bottom">
				<text class="name">课堂评分</text>
				<uv-rate :count="count" v-model="value" inactiveColor="#D8D8D8" activeColor="#FF8535" size="46rpx" gutter="10" inactiveIcon="star-fill"></uv-rate>
			</view>
		</view>
		<view class="main">
			<uv-textarea :border="false" v-model="textareavalue" placeholder="课堂评价"></uv-textarea>
		</view>
		
		<view class="action">
			<view class="btn">
				确定
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				active: 0,
				list: [{
					name: '已评价(10)',
				}, {
					name: '未评价(20)',
				}],
				userList: [{
						name: '小明',
						status: 1,
						avatar: '',
						text: '到课',
						note: '已评价'
					},
					{
						name: '小明',
						status: 2,
						avatar: '',
						text: '请假',
						note: '已评价'
					}
				],
				textareavalue:'',
				count: 5,
			    value: 2
			}
		},
		methods:{
			
		}
	}
</script>

<style lang="scss">
	page {
		background: #f7f8fa;
	}
	.content{
		width: 100%;
	}
	.head{
		position: relative;
		height: 240rpx;
		background: #FFFFFF;
		padding-bottom: 0;
		
		box-sizing: border-box;
		/* 描边 */
		border-width: 0px 0px 2px 0px;
		border-style: solid;
		border-color: rgba(230, 229, 231, 0.8);
		.info{
			height: 140rpx;
			padding: 40rpx;
			box-sizing: border-box;
			.wrap{
				display: flex;
				align-items: center;
				width: 100%;
				height: 80rpx;
				// height: 100%;
				.avatar{
					width: 80rpx;
					height: 80rpx;
					border-radius: 50%;
					background-color: orangered;
				}
				.name{
					margin-left: 20rpx;
					font-family: PingFang SC;
					font-size: 28rpx;
					font-weight: 500;
					line-height: 38rpx;
					text-align: right;
					letter-spacing: 0px;
					margin-top: 8rpx;
					
					font-variation-settings: "opsz" auto;
					color: #3D3D3D;
				}
			}
		}
		.bottom{
			// position: absolute;
			// left: 0;
			// bottom: 0;
			display: flex;
			align-items: center;
			justify-content: space-between;
			width: 100%;
			height: 100rpx;
			padding: 0 40rpx;
			box-sizing: border-box;
			.name{
				font-family: PingFang SC;
				font-size: 28rpx;
				font-weight: 500;
				line-height: 38rpx;
				text-align: right;
				letter-spacing: 0px;
				
				font-variation-settings: "opsz" auto;
				color: #3D3D3D;
			}
		}
	}
	
	.main{
		margin-top: 20rpx;
		height: 300rpx;
		opacity: 1;
		padding: 32rpx 40rpx;
		box-sizing: border-box;
		background: #FFFFFF;
	}
	.action{
		position: absolute;
		left: 0px;
		width: 100%;
		bottom: env(safe-area-inset-bottom);
		padding: 0 48rpx;
		box-sizing: border-box;
		.btn{
			width: 100%;
			height: 80rpx;
			text-align: center;
			line-height: 80rpx;
			border-radius: 8rpx;
			color: #FFFFFF;
			background: #FF8535;
		}
	}
	
</style>